<template>
  <div>
    <h1>我是B组件</h1>
    <button @click="sendFn">点击</button>
  </div>
</template>

<script>
import eventBus from "../EventBus/index.js";
export default {
  methods: {
    sendFn() {
      eventBus.$emit("send", "送你一朵小红花");
    },
  },
};
</script>

<style>
</style>